#ifndef __QUOTE_HANDLER_H__
#define __QUOTE_HANDLER_H__

#include "ShZdFutureMarketApi.h"
#include "ShZdFutureUserApiDataType.h"
#include "ShZdFutureUserApiStruct.h"


class QuoteHandler :public CSHZdMarketSpi
{
public:
	QuoteHandler(CSHZdMarketApi *api);
	virtual ~QuoteHandler();
	void OnFrontConnected();
	void OnFrontDisconnected(int nReason);
	void OnHeartBeatWarning(int nTimeLapse);
	void OnRspUserLogin(CTShZdRspUserLoginField *pRspUserLogin, CTShZdRspInfoField *pRspInfo,
		int nRequestID, bool bIsLast);
	void OnRspUserLogout(CTShZdUserLogoutField *pUserLogout, CTShZdRspInfoField *pRspInfo,
		int nRequestID, bool bIsLast);
	void OnRspError(CTShZdRspInfoField *pRspInfo, int nRequestID, bool bIsLast);
	void OnRspSubMarketData(CTShZdSpecificInstrumentField *pSpecificInstrument, CTShZdRspInfoField *pRspInfo,
		int nRequestID, bool bIsLast);
	void OnRspUnSubMarketData(CTShZdSpecificInstrumentField *pSpecificInstrument, CTShZdRspInfoField *pRspInfo,
		int nRequestID, bool bIsLast);
	void OnRtnDepthMarketData(CTShZdDepthMarketDataField *pDepthMarketData);
	void OnRtnFilledMarketData(CTShZdFilledDataField* pFilledMarketData);
private:
	CSHZdMarketApi * m_api;
};

#endif